<template>
  <div>
    <div class="items">
      <img :src="rangeItem.range_img" alt="" class="img" />
      <div class="already"></div>
    </div>
    <div class="itemInfo">
      <div class="itemContent">{{ rangeItem.range_jianjie }}</div>
      <div class="bottom">
        <div class="state">
          <div class="states">
            <span class="s_left">恶意代码</span>
            <div class="start"></div>
          </div>
          <div class="hot">{{ rangeItem.range_hot }}人</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    rangeItem: {
      type: Object,
      default: () => {},
    },
  },
};
</script>

<style lang="scss" scoped>
.items {
  position: relative;
  border-radius: 12px 12px 0px 0px;
  height: 240px;
  margin-right: 26px;
  width: 401px;
  .already {
    position: absolute;
    width: 34px;
    height: 34px;
    top: 190px;
    left: 351px;

    background-color: #ccc;
  }
  .img {
    border-radius: 12px 12px 0px 0px;
    height: 240px;
    margin-right: 26px;
    width: 401px;
    background-color: #ccc;
  }
}
.itemInfo {
  overflow: hidden;
  width: 401px;
  height: 100px;
}
.itemContent {
  width: 377px;
  height: 28px;
  // overflow-wrap: break-word;
  color: rgba(0, 0, 0, 1);
  font-size: 20px;
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  text-align: left;
  // white-space: nowrap;
  line-height: 28px;
  margin: 12px 0 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.bottom {
  width: 401px;
  // display: flex;
  // justify-content: space-between;

  .state {
    width: 377px;
    height: 29px;
    margin: 19px 0 152px 12px;
    opacity: 1;
    // background-color: #d5d5d5;
    display: flex;
    justify-content: space-between;
    .states {
      display: flex;
    }
    .hot {
      width: 100px;
      height: 22px;
      overflow-wrap: break-word;
      color: rgba(153, 153, 153, 1);
      font-size: 16px;
      font-family: PingFangSC-Semibold;
      font-weight: 600;
      text-align: end;
      white-space: nowrap;
      line-height: 22px;
      margin-top: 7px;
    }
    .s_left {
      width: 64px;
      height: 22px;
      overflow-wrap: break-word;
      font-size: 16px;
      font-weight: NaN;
      text-align: left;
      white-space: nowrap;
      line-height: 22px;
      margin-top: 7px;
      opacity: 1;
    }
    .start {
      width: 30px;
      height: 29px;
      background-color: #ccc;
      margin-left: 14px;
    }
  }
}
</style>